package com.ke.forum.mbg.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ke.forum.mbg.entity.User;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class AnnouncementDto {
    private Integer id;


    /**
     * 公告标题
     */
    @NotNull
    private String title;

    /**
     * 公告内容
     */
    @NotNull
    private String content;

    /**
     * 创建人uuid
     */
    @NotNull
    private String userUuid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String username;
}
